<?php
/**
 * Author: Administrator
 * Date: 2022/7/23 2:03
 */

namespace DesignPatterns\Behavioral\State;


class ShippingOrder extends Order
{

    public function shipOrder()
    {
        throw new \Exception('Already shipped');
    }

    public function completeOrder()
    {
        $this->order->updateState('complete');
    }
}